package io.lw.springbootamq.receiver;


import io.lw.springbootamq.constant.Constant;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Slf4j
//@Component
@RabbitListener(queues = {Constant.QUEUE_NAME_4}, containerFactory = Constant.CUSTOM_CONNECTION_FACTORY)
public class Receiver4 {

    @RabbitHandler
    public void receiver(String msg) {
        log.info("Test4 receiver4:" + msg);
    }
}
